/* Target Score Form 专用样式 */
.target-form-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    padding: 2rem 0;
}

.target-form-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.target-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header-custom {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
    position: relative;
}

.student-info-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f4f8;
}

.section-title {
    color: #4361ee;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f4f8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label-custom {
    font-weight: 600;
    color: #2b2d42;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control-custom {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.form-control-custom:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

/* 分数输入组 */
.score-input-group {
    position: relative;
}

.score-input-group .form-control-custom {
    padding-right: 3rem;
}

.score-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-weight: 500;
}

/* 信心输入组 */
.confidence-input-group {
    position: relative;
}

.confidence-input-group .form-control-custom {
    padding-right: 3rem;
}

.confidence-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-weight: 500;
}

/* 信心可视化 */
.confidence-visual {
    margin-top: 0.5rem;
}

.confidence-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48cae4, #4361ee);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.confidence-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* 进度可视化 */
.progress-input-group {
    position: relative;
}

.progress-input-group .form-control-custom {
    padding-right: 3rem;
}

.progress-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-weight: 500;
}

.progress-visual {
    margin-top: 0.5rem;
}

.progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4361ee, #3a56d4);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 时间输入组 */
.time-input-group {
    position: relative;
}

.time-input-group .form-control-custom {
    padding-right: 5rem;
}

.time-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-weight: 500;
}

/* 分数预览卡片 */
.score-preview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.score-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

.score-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.score-preview-item {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.score-preview-item.ideal {
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.score-preview-item.realistic {
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.score-preview-item.safety {
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.score-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.score-unit {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 地区信息卡片 */
.region-info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
}

.region-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #4361ee;
    margin-bottom: 0.5rem;
}

.region-content {
    color: #2b2d42;
}

/* 按钮样式 */
.btn-save {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
    color: white;
}

.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.5);
    background: linear-gradient(135deg, #3a56d4 0%, #2f48b8 100%);
    color: white;
}

.btn-back {
    background: white;
    border: 2px solid #6c757d;
    color: #6c757d;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* 错误状态样式 */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .target-form-container {
        padding: 1rem;
    }

    .score-preview-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .form-section {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .card-header-custom .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .card-header-custom .text-end {
        text-align: center !important;
    }
}